package com.beck.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "beck")
public class Customer1 {
    @RabbitHandler
    public void showMsg(String message) {
        System.out.println("message:"+message);
    }
}
